package com.fitz.bean;

import java.util.ArrayList;
import java.util.List;

/**
 * @author gousili
 * Created  on 2020/7/6
 */
public class BeanDefinition {

    private String beanId;

    private String className;

    private List<PropertyDefinition> propertyDefinitions = new ArrayList<>();

    public BeanDefinition(String beanId, String className) {
        this.beanId = beanId;
        this.className = className;
    }

    public String getBeanId() {
        return beanId;
    }

    public void setBeanId(String beanId) {
        this.beanId = beanId;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public List<PropertyDefinition> getPropertyDefinitions() {
        return propertyDefinitions;
    }

    public void setPropertyDefinitions(List<PropertyDefinition> propertyDefinitions) {
        this.propertyDefinitions = propertyDefinitions;
    }

    public void addPropertyDefinition(PropertyDefinition propertyDefinition){
        if (null != propertyDefinition){
            propertyDefinitions.add(propertyDefinition);
        }
    }
}
